
package atributosDef;

public class Instruccion {
    private String cod;
    private int numIns;
    
    public Instruccion(String cod, int numIns){
        this.cod = cod;
        this.numIns = numIns;
    }
    
    public Instruccion(Instruccion ins){
        cod = ins.cod;
        numIns = ins.getNumIns();
    }
    
    public String getCod(){
        return cod;
    }
    
    public void setCod(String cod){
        this.cod = cod;
    }
    
    public int getNumIns(){
        return numIns;
    }
    
    public void setNumIns(int numIns){
        this.numIns = numIns;
    }
    
    @Override
    public String toString(){
        return "" + numIns + "*" + cod + "\n"; 
    }
}
